import React from 'react';
import PropTypes from 'prop-types'
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
// class AddonInput extends Component{
//     constructor(props){
//         super()
//     }
//     render(){ }
// }

const AddonInput = function(props){
    let iconstr = props.icon;
    return (
        <div className='addon-input-group'>
            <span>采集</span>
            <input type="text" placeholder='请输入内容'/>
            <span><FontAwesomeIcon icon={iconstr}></FontAwesomeIcon></span>
        </div>
    );
}

AddonInput.propTypes = {
    icon: PropTypes.string.isRequired,
}
export default AddonInput;